cmake_minimum_required(VERSION 3.14)
project(autoware_route_handler)

find_package(autoware_cmake REQUIRED)
autoware_package()

ament_auto_add_library(${PROJECT_NAME} SHARED
  src/route_handler.cpp
)

if(BUILD_TESTING)
  ament_add_ros_isolated_gtest(test_autoware_route_handler
    test/test_route_handler.cpp)

  ament_target_dependencies(test_autoware_route_handler
    autoware_test_utils
  )

  target_link_libraries(test_autoware_route_handler
    ${PROJECT_NAME}
  )

endif()

ament_auto_package(INSTALL_TO_SHARE
  test_route
)
